package com.njwd.rpc.provider.wsimpl;

import java.math.BigDecimal;
import java.util.LinkedList;
import java.util.List;

import org.apache.commons.lang3.RandomUtils;
import org.springframework.stereotype.Component;

import com.njwd.common.rpc.ResponseVo;
import com.njwd.rpc.api.UserSimpleSerivices;
import com.njwd.rpc.vo.User;
@Component("userServiceSimplePos1Impl")
public class UserSimpleSerivcesPos1Impl implements UserSimpleSerivices {

	@Override
	public ResponseVo<List<User>> queryUserByClassId(String routeKey,String id) {
		System.out.println("provider:queryUserByClassId:"+id);
		List<User> us = new LinkedList<User>();
		us.add(new User(new BigDecimal(RandomUtils.nextLong(1000, 100000)), "POS1", "POS1"));
		us.add(new User(new BigDecimal(RandomUtils.nextLong(1000, 100000)), "POS1", "POS1"));
		us.add(new User(new BigDecimal(RandomUtils.nextLong(1000, 100000)), "POS1", "POS1"));
		return ResponseVo.getSuccessResponse(us);
	}

	
}
